package com.kx.game.center.container;

import org.springframework.beans.factory.annotation.Value;

public class ServerConfiguration {

    @Value("${logicServerMaxConnect}")
    private int logicServerMaxConnect;

    @Value("${logicServerIp}")
    private String logicServerIp;

    @Value("${logicServerPort}")
    private int logicServerPort;

    @Value("${logicServerCount}")
    private int logicServerCount;

    @Value("${gatewayServerMaxConnect}")
    private int gatewayServerMaxConnect;

    @Value("${gatewayServerIp}")
    private String gatewayServerIp;

    @Value("${gatewayServerPort}")
    private int gatewayServerPort;

    @Value("${gatewayServerCount}")
    private int gatewayServerCount;

    @Value("${resourcePath}")
    private String resourcePath;

    @Value("${gameDBname}")
    private String gameDBname;

    @Value("${distributionMode}")
    private int distributionMode;

    @Value("${serverPlayerNum}")
    private int serverPlayerNum;

    @Value("${serverId}")
    private int serverId;

    @Value("${friendServerId}")
    private int friendServerId;

    public int getLogicServerMaxConnect() {
        return logicServerMaxConnect;
    }

    public String getLogicServerIp() {
        return logicServerIp;
    }

    public int getLogicServerPort() {
        return logicServerPort;
    }

    public int getLogicServerCount() {
        return logicServerCount;
    }

    public int getGatewayServerMaxConnect() {
        return gatewayServerMaxConnect;
    }

    public String getGatewayServerIp() {
        return gatewayServerIp;
    }

    public int getGatewayServerPort() {
        return gatewayServerPort;
    }

    public int getGatewayServerCount() {
        return gatewayServerCount;
    }

    public void setLogicServerMaxConnect(int logicServerMaxConnect) {
        this.logicServerMaxConnect = logicServerMaxConnect;
    }

    public void setLogicServerIp(String logicServerIp) {
        this.logicServerIp = logicServerIp;
    }

    public void setLogicServerPort(int logicServerPort) {
        this.logicServerPort = logicServerPort;
    }

    public void setLogicServerCount(int logicServerCount) {
        this.logicServerCount = logicServerCount;
    }

    public void setGatewayServerMaxConnect(int gatewayServerMaxConnect) {
        this.gatewayServerMaxConnect = gatewayServerMaxConnect;
    }

    public void setGatewayServerIp(String gatewayServerIp) {
        this.gatewayServerIp = gatewayServerIp;
    }

    public void setGatewayServerPort(int gatewayServerPort) {
        this.gatewayServerPort = gatewayServerPort;
    }

    public void setGatewayServerCount(int gatewayServerCount) {
        this.gatewayServerCount = gatewayServerCount;
    }

    public String getResourcePath() {
        return resourcePath;
    }

    public void setResourcePath(String resourcePath) {
        this.resourcePath = resourcePath;
    }

    public String getGameDBname() {
        return gameDBname;
    }

    public void setGameDBname(String gameDBname) {
        this.gameDBname = gameDBname;
    }

    public void setDistributionMode(int distributionMode) {
        this.distributionMode = distributionMode;
    }

    public int getDistributionMode() {
        return distributionMode;
    }

    public int getServerPlayerNum() {
        return serverPlayerNum;
    }

    public void setServerPlayerNum(int serverPlayerNum) {
        this.serverPlayerNum = serverPlayerNum;
    }

    public int getServerId() {
        return serverId;
    }

    public void setServerId(int serverId) {
        this.serverId = serverId;
    }

    public int getFriendServerId() {
        return friendServerId;
    }

    public void setFriendServerId(int friendServerId) {
        this.friendServerId = friendServerId;
    }
}
